
#import "KBaseWebModel.h"
@implementation KBaseWebModel
- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
self = [super init];
if (self) {
[self setValuesForKeysWithDictionary:dictionary];
}
return self;
}
-(instancetype)init
{
self = [super init];
if (self) {
_ClickUrl = @"";
_Title = @"";
_HaveSearch = @"";
_SearchUrl = @"";
}
return self;
}
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{}
- (void)setClickUrl:(NSString*)ClickUrl{
_ClickUrl = [[KUntils ValueToString:ClickUrl]copy];
}
- (void)setTitle:(NSString*)Title{
_Title = [[KUntils ValueToString:Title]copy];
}
- (void)setHaveSearch:(NSString*)HaveSearch{
_HaveSearch = [[KUntils ValueToString:HaveSearch]copy];
}
- (void)setSearchUrl:(NSString*)SearchUrl{
_SearchUrl = [[KUntils ValueToString:SearchUrl]copy];
}
@end
